home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 March: Reference Library / Dev.CD Mar 97 RL.toast / mac / Technical Documentation / Macintosh Technical Notes / technotes / tn / 1076_MsgTest.hqx / MsgTest / MacMsgTest / MsgTest.h < prev    next >
Encoding:
Text File  |  1996-08-29  |  939 b   |  30 lines

  1. // •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  2. // MsgTest.h
  3. // 
  4. // July 31, 1996
  5. // By Ben Manuto
  6. // 
  7. // © 1996 by Apple Computer, Inc., all rights reserved.
  8. //
  9. // •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  10.  
  11. #define    kDefaultSelector    0x12345678
  12. #define kDefaultMsgSize        256                    // Our default message packet size.
  13. #define kDefaultMsgTypes    2                    // The number of message types for our msg commands type.
  14.  
  15. #define kDataMsgType        0
  16. #define kAckMsgType            1
  17.  
  18. #define kMsgCommandType        'msgt'                // Our message command type.
  19.  
  20.  
  21. // ••••• Public Functions
  22.  
  23.  
  24. OSErr InitializeMsgSystem(void);
  25. OSErr CloseMsgSystem(void);
  26.  
  27. MsgRecElemPtr NewMsgRecElem(SInt16 cmdBase, UInt16 cmdCount, UInt32 refCon); 
  28. MsgPBlkPtr NewMessage(OSType cmdValue, UInt32 param1, UInt32 param2, UInt32 msgSize);
  29. void DeleteMessage(MsgPBlkPtr theMsg);
  30. void DeleteMsgRecElem(MsgRecElemPtr theMsgRecElem);